package org.ysh.domain;

import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 部门实体类
 */
@Data
@ToString
public class Department extends BaseEntity{
    // 部门名称
    private String departmentName;
    // 部门编码
    private String departmentCode;
    //    部门描述
    private String departmentDesc;

    private String fondsCode;
    //    状态 0 正常 1 禁用
    private Integer status;
    //    父级id
    private Integer parentId;
    //    排序
    private Integer sort;

    private List<Department> children;

    public Department() {}

    public Department(Integer id) {
        this.id =  id;
    }
    public Department(String departmentCode) {
        this.departmentCode = departmentCode;
    }

}
